public class Student {
    private String name;
    private String studentId;
    private String className;
    private String gender;
    private int age;
    private String personality;

    public Student(String name, String studentId, String className, String gender, int age, String personality) {
        this.name = name;
        this.studentId = studentId;
        this.className = className;
        this.gender = gender;
        this.age = age;
        this.personality = personality;
    }

    public void printInfoSummary() {
        System.out.println("姓名: " + name +
                ", 学号: " + studentId +
                ", 班级: " + className +
                ", 性别: " + gender +
                ", 年龄: " + age +
                ", 性格: " + personality);
    }

    public static void main(String[] args) {

        Student student1 = new Student("张三", "001", "计算机", "男", 18, "开朗");
        Student student2 = new Student("李四", "002", "地理科学", "女", 19, "内向");
        Student student3 = new Student("王五", "003", "地理信息科学", "男", 18, "外向");

        student1.printInfoSummary();
        student2.printInfoSummary();
        student3.printInfoSummary();
    }
}
